package com.stone.controller;

import com.stone.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 库存控制器类
 * @author: zoubaolu
 * @date: 2022年06月23日 9:33
 */
@RestController
@RequestMapping("/consume")
public class StockController {

    @Autowired
    private StockService stockService;

    @GetMapping("/descStock")
    public String descStock(String goodsId, Integer num) {
        return stockService.descStock(goodsId, num);
    }
}
